import paramiko
import time
ssh1 = paramiko.SSHClient()
ssh1.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh1.connect(hostname='203.0.113.3', port=22, username='qytang', password='qytang', timeout=5,\
             allow_agent=False, look_for_keys=False)
sftp1=ssh1.open_sftp()
local_path=r'd:/michael/Videos/'
remote_path='/'
# sftp1.get(remote_path +'vrpcfg.zip',local_path+'vrpcfg.zip')
sftp1.put(local_path+'20210515.txt',remote_path +'haha.txt')
time.sleep(3)
ssh1.close()

